//
//  TaobaoProductViewController.swift
//  viewcontroller_test
//
//  Created by 曾思宇 on 16/4/4.
//  Copyright © 2016年 海南开工信息技术有限公司. All rights reserved.
//

import UIKit

class TaobaoProductViewController: UIViewController {

    @IBOutlet weak var scrollView: TaobaoProductView!
    
    @IBAction func onClickRestore(sender: AnyObject) {
        
        scrollView.restore()
        
    }
    override func viewDidLoad() {
        super.viewDidLoad()

        scrollView.pageMenuViewController?.didMoveToParentViewController(self)
        // Do any additional setup after loading the view.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    override func willMoveToParentViewController(parent: UIViewController?) {
        
        if let navController = parent as? UINavigationController {
            navController.navigationBarHidden = false
        }
    }
    
    
    override func viewWillAppear(animated: Bool) {
        
        navigationController?.navigationBarHidden = false
    }

}
